﻿using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

using Microsoft.EntityFrameworkCore.Metadata.Internal;

namespace Xc.DataAccess.DataBase.DeviceInfos.Models
{
    /// <summary>
    /// 设备信息
    /// </summary>
    public class DeviceInfo: DeviceInfoAdd
    {

        /// <summary>
        /// 属性信息
        /// </summary>
       public ICollection<DevicePropertyInfo> PropertyInfos { get; set; }
        /// <summary>
        /// 历史属性信息
        /// </summary>
       public ICollection<DevicePropertyInfoHistory> PropertyInfoHistory { get; set; }
        /// <summary>
        /// 报警信息
        /// </summary>
       public ICollection<AlarmInfo> AlarmInfos { get; set; }
        /// <summary>
        /// 设备的历史报警信息
        /// </summary>
        public ICollection<AlarmInfoHistory> AlarmInfoHistorys { get; set; }
        /// <summary>
        /// 设备的历史命令信息
        /// </summary>
       public ICollection<CommandInfo> CommandInfos { get; set; }
        public bool IsDelete { get; set; }
    }
}
